\section{toc --- Read timer}
\label{fn:toc}
\index{toc()}
\index{read timer}
\index{timer!reading}
\begin{rail}
ReadTimer : 'toc' '(' ')' ;
\end{rail}

\verb+toc+ measures the time that has elapsed since the last call 
to the \verb+tic+ function.  It returns a scalar containing the
time difference, measured in seconds. If \verb+tic+ has not previously
been called, an error will occur.

\paragraph{Example}
\index{example of toc()}
\index{toc()!example}
\begin{verbatim}
> toc()
rlab: must call tic() 1st
> tic();
> toc()
       11
> tic(); a = rand(20,200); toc()
        2
> tic(); a = rand(200,200); toc()
       16
> tic(); b = inv(a); toc()
 2.39e+03
> 2390/60
     39.8
> // Yep, that took nearly 40 minutes.  Now, why did I want that ...
\end{verbatim}

See also: Page \pageref{fn:tic} \verb+tic()+.

\newpage



